import request from '@/utils/request'

export function findPage(page, data) {
  return request({
    url: '/sys/sys-role/page',
    method: 'post',
    params: page,
    data
  })
}

export function save(data) {
  return request({
    url: '/sys/sys-role/save',
    method: 'post',
    data
  })
}

export function update(data) {
  return request({
    url: '/sys/sys-role/update',
    method: 'put',
    data
  })
}

export function find(id) {
  return request({
    url: '/sys/sys-role/find/' + id,
    method: 'get'
  })
}

export function remove(id) {
  return request({
    url: '/sys/sys-role/delete/' + id,
    method: 'delete'
  })
}

export function removeIds(data) {
  return request({
    url: '/sys/sys-role/deleteIds',
    method: 'delete',
    data
  })
}
export function list() {
  return request({
    url: '/sys/sys-role/list',
    method: 'get'
  })
}
